Integrand size = 26, antiderivative size = 91 \[ \int \sqrt {a-a \sin ^2(e+f x)} \tan ^4(e+f x) \, dx=-\frac {3 \text {arctanh}(\sin (e+f x)) \sqrt {a \cos ^2(e+f x)} \sec (e+f x)}{2 f}+\frac {3 \sqrt {a \cos ^2(e+f x)} \tan (e+f x)}{2 f}+\frac {\sqrt {a \cos ^2(e+f x)} \tan ^3(e+f x)}{2 f} \]
[Out]
Time = 0.14 (sec) , antiderivative size = 91, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.231, Rules used = {3255, 3286, 2672, 294, 327, 212} \[ \int \sqrt {a-a \sin ^2(e+f x)} \tan ^4(e+f x) \, dx=-\frac {3 \sec (e+f x) \sqrt {a \cos ^2(e+f x)} \text {arctanh}(\sin (e+f x))}{2 f}+\frac {\tan ^3(e+f x) \sqrt {a \cos ^2(e+f x)}}{2 f}+\frac {3 \tan (e+f x) \sqrt {a \cos ^2(e+f x)}}{2 f} \]
[In]
[Out]
Rule 212
Rule 294
Rule 327
Rule 2672
Rule 3255
Rule 3286
Rubi steps \begin{align*} \text {integral}& = \int \sqrt {a \cos ^2(e+f x)} \tan ^4(e+f x) \, dx \\ & = \left (\sqrt {a \cos ^2(e+f x)} \sec (e+f x)\right ) \int \sin (e+f x) \tan ^3(e+f x) \, dx \\ & = \frac {\left (\sqrt {a \cos ^2(e+f x)} \sec (e+f x)\right ) \text {Subst}\left (\int \frac {x^4}{\left (1-x^2\right )^2} \, dx,x,\sin (e+f x)\right )}{f} \\ & = \frac {\sqrt {a \cos ^2(e+f x)} \tan ^3(e+f x)}{2 f}-\frac {\left (3 \sqrt {a \cos ^2(e+f x)} \sec (e+f x)\right ) \text {Subst}\left (\int \frac {x^2}{1-x^2} \, dx,x,\sin (e+f x)\right )}{2 f} \\ & = \frac {3 \sqrt {a \cos ^2(e+f x)} \tan (e+f x)}{2 f}+\frac {\sqrt {a \cos ^2(e+f x)} \tan ^3(e+f x)}{2 f}-\frac {\left (3 \sqrt {a \cos ^2(e+f x)} \sec (e+f x)\right ) \text {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,\sin (e+f x)\right )}{2 f} \\ & = -\frac {3 \text {arctanh}(\sin (e+f x)) \sqrt {a \cos ^2(e+f x)} \sec (e+f x)}{2 f}+\frac {3 \sqrt {a \cos ^2(e+f x)} \tan (e+f x)}{2 f}+\frac {\sqrt {a \cos ^2(e+f x)} \tan ^3(e+f x)}{2 f} \\ \end{align*}
Time = 0.22 (sec) , antiderivative size = 55, normalized size of antiderivative = 0.60 \[ \int \sqrt {a-a \sin ^2(e+f x)} \tan ^4(e+f x) \, dx=\frac {a (-3 \text {arctanh}(\sin (e+f x)) \cos (e+f x)+(2+\cos (2 (e+f x))) \tan (e+f x))}{2 f \sqrt {a \cos ^2(e+f x)}} \]
[In]
[Out]
Time = 1.04 (sec) , antiderivative size = 131, normalized size of antiderivative = 1.44
method | result | size |
default | \(\frac {\sqrt {a \left (\sin ^{2}\left (f x +e \right )\right )}\, \left (2 \sqrt {a \left (\sin ^{2}\left (f x +e \right )\right )}\, \left (\cos ^{2}\left (f x +e \right )\right ) \sqrt {a}-3 \ln \left (\frac {2 \sqrt {a}\, \sqrt {a \left (\sin ^{2}\left (f x +e \right )\right )}+2 a}{\cos \left (f x +e \right )}\right ) a \left (\cos ^{2}\left (f x +e \right )\right )+\sqrt {a}\, \sqrt {a \left (\sin ^{2}\left (f x +e \right )\right )}\right )}{2 \cos \left (f x +e \right ) \sqrt {a}\, \sin \left (f x +e \right ) \sqrt {a \left (\cos ^{2}\left (f x +e \right )\right )}\, f}\) | \(131\) |
risch | \(-\frac {\sqrt {\left ({\mathrm e}^{2 i \left (f x +e \right )}+1\right )^{2} a \,{\mathrm e}^{-2 i \left (f x +e \right )}}\, \left (i {\mathrm e}^{6 i \left (f x +e \right )}+3 \ln \left ({\mathrm e}^{i f x}+i {\mathrm e}^{-i e}\right ) {\mathrm e}^{5 i \left (f x +e \right )}-3 \ln \left ({\mathrm e}^{i f x}-i {\mathrm e}^{-i e}\right ) {\mathrm e}^{5 i \left (f x +e \right )}+3 i {\mathrm e}^{4 i \left (f x +e \right )}+6 \ln \left ({\mathrm e}^{i f x}+i {\mathrm e}^{-i e}\right ) {\mathrm e}^{3 i \left (f x +e \right )}-6 \ln \left ({\mathrm e}^{i f x}-i {\mathrm e}^{-i e}\right ) {\mathrm e}^{3 i \left (f x +e \right )}-3 i {\mathrm e}^{2 i \left (f x +e \right )}+3 \ln \left ({\mathrm e}^{i f x}+i {\mathrm e}^{-i e}\right ) {\mathrm e}^{i \left (f x +e \right )}-3 \ln \left ({\mathrm e}^{i f x}-i {\mathrm e}^{-i e}\right ) {\mathrm e}^{i \left (f x +e \right )}-i\right )}{2 f \left ({\mathrm e}^{2 i \left (f x +e \right )}+1\right )^{3}}\) | \(246\) |
[In]
[Out]
none
Time = 0.30 (sec) , antiderivative size = 77, normalized size of antiderivative = 0.85 \[ \int \sqrt {a-a \sin ^2(e+f x)} \tan ^4(e+f x) \, dx=-\frac {\sqrt {a \cos \left (f x + e\right )^{2}} {\left (3 \, \cos \left (f x + e\right )^{2} \log \left (-\frac {\sin \left (f x + e\right ) + 1}{\sin \left (f x + e\right ) - 1}\right ) - 2 \, {\left (2 \, \cos \left (f x + e\right )^{2} + 1\right )} \sin \left (f x + e\right )\right )}}{4 \, f \cos \left (f x + e\right )^{3}} \]
[In]
[Out]
\[ \int \sqrt {a-a \sin ^2(e+f x)} \tan ^4(e+f x) \, dx=\int \sqrt {- a \left (\sin {\left (e + f x \right )} - 1\right ) \left (\sin {\left (e + f x \right )} + 1\right )} \tan ^{4}{\left (e + f x \right )}\, dx \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 827 vs. \(2 (79) = 158\).
Time = 0.42 (sec) , antiderivative size = 827, normalized size of antiderivative = 9.09 \[ \int \sqrt {a-a \sin ^2(e+f x)} \tan ^4(e+f x) \, dx=\text {Too large to display} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 197 vs. \(2 (79) = 158\).
Time = 1.22 (sec) , antiderivative size = 197, normalized size of antiderivative = 2.16 \[ \int \sqrt {a-a \sin ^2(e+f x)} \tan ^4(e+f x) \, dx=\frac {{\left (3 \, \log \left ({\left | \frac {1}{\tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )} + \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 2 \right |}\right ) \mathrm {sgn}\left (\tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{4} - 1\right ) - 3 \, \log \left ({\left | \frac {1}{\tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )} + \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - 2 \right |}\right ) \mathrm {sgn}\left (\tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{4} - 1\right ) - \frac {4 \, {\left (3 \, {\left (\frac {1}{\tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )} + \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )}^{2} \mathrm {sgn}\left (\tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{4} - 1\right ) - 8 \, \mathrm {sgn}\left (\tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{4} - 1\right )\right )}}{{\left (\frac {1}{\tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )} + \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )}^{3} - \frac {4}{\tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )} - 4 \, \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )}\right )} \sqrt {a}}{4 \, f} \]
[In]
[Out]
Timed out. \[ \int \sqrt {a-a \sin ^2(e+f x)} \tan ^4(e+f x) \, dx=\int {\mathrm {tan}\left (e+f\,x\right )}^4\,\sqrt {a-a\,{\sin \left (e+f\,x\right )}^2} \,d x \]
[In]
[Out]